<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    var str = "ABC12   abc!@#$3aab  /bc%^&*4    5ab\nd67&*()ababa_cb  89-qwr_0AAA";
    console.log( str );
    // console.log( str.replace(/a/, "啊") );
    // console.log( str.replace(/a/g, "啊") );
    // console.log( str.replace(/a/gi, "啊") );
    // console.log( str.replace(/a/ig, "啊") );
    // console.log( str.replace(/a+/ig, "啊") );

    // console.log( str.replace(/ab/ig, "啊") );
    // console.log( str.replace(/a|b/ig, "啊") );
    // console.log( str.replace(/a|b+/ig, "啊") );
    // console.log( str.replace(/(a|b)+/ig, "啊") );
    // console.log( str.replace(/[a-z]+/ig, "啊") );
    // console.log( str.replace(/[0-9]+/ig, "啊") );
    // console.log( str.replace(/\d+/ig, "啊") );
    // console.log( str.replace(/\w+/ig, "啊") );

    // console.log( str.replace(/\D+/ig, "啊") );
    // console.log( str.replace(/\W+/ig, "啊") );
    
    // console.log( str.replace(/3+/ig, "啊") );
    // console.log( str.replace(/[^3]+/ig, "啊") );
    
    // console.log( str.replace(/\s+/ig, "啊") );
    // console.log( str.replace(/\S+/ig, "啊") );
    
    console.log( str.replace(/\/+/ig, "啊") );
    
</script>
</html>